<template>
    <div>
        <h1>测试webpack-dev-server的proxy跨域请求</h1>
    </div>
</template>
<script>
export default {
    created(){
        this.$http.get('/api/proxy.php?act=getJoke').then((res)=>{
            console.log(res);
        });
    } 
}
</script>
<style>

</style>


